package g327app4springcloud

import org.springframework.cloud.netflix.feign.FeignClient
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMethod

/**
 * Created by marsd on 2017/7/21.
 */
@FeignClient("GRAILS-CLOUD-DEMO")
interface ServiceClient {
    @RequestMapping(method = RequestMethod.GET, value = "/serviceSide/index.json?name={name}")
    MyCommandObject getResults(@PathVariable("name") String name)
}